import { createApp } from 'vue'
import App from './App'
import { createPinia } from 'pinia'
import Router from './router/permission'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/lib/locale/lang/zh-cn'
import 'element-plus/dist/index.css'
import "./styles/main.css"
import "./styles/global.scss"
import "./styles/m.scss"
 import 'vxe-table/lib/style.css'

import { initApi } from './utils/init'

const app = createApp(App)

app.use(createPinia())
app.use(Router)  

app.use(ElementPlus)

app.use(ElementPlus, { locale: zhCn })

initApi(app)